<!DOCTYPE html><html lang="zh-Hans"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"><meta name="description" content="huluo的技术博客"><meta name="keywords" content=""><meta name="author" content="kyren"><meta name="copyright" content="kyren"><title>Stay hungry, stay foolish | Kyren's Blog</title><link rel="shortcut icon" href="/melody-favicon.ico"><link rel="stylesheet" href="/css/index.css?version=1.9.0"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@latest/css/font-awesome.min.css?version=1.9.0"><meta name="format-detection" content="telephone=no"><meta http-equiv="x-dns-prefetch-control" content="on"><link rel="dns-prefetch" href="https://cdn.jsdelivr.net"><link rel="dns-prefetch" href="https://hm.baidu.com"><script>var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?cf87fcdbd9ab7cf93d894f7c219ae78f";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();</script><meta http-equiv="Cache-Control" content="no-transform"><meta http-equiv="Cache-Control" content="no-siteapp"><script src="https://v1.hitokoto.cn/?encode=js&amp;charset=utf-8&amp;select=.footer_custom_text" defer></script><script>var GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: {"path":"search.xml","languages":{"hits_empty":"找不到您查询的内容:${query}"}},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  hexoVersion: '6.2.0'
} </script><meta name="generator" content="Hexo 6.2.0"></head><body><i class="fa fa-arrow-right" id="toggle-sidebar" aria-hidden="true"></i><div id="sidebar" data-display="false"><div class="author-info"><div class="author-info__avatar text-center"><img src="https://avatars.githubusercontent.com/u/5827823?v=4"></div><div class="author-info__name text-center">kyren</div><div class="author-info__description text-center">huluo的技术博客</div><div class="follow-button"><a target="_blank" rel="noopener" href="https://github.com/huluo666">Follow Me</a></div><hr><div class="author-info-articles"><a class="author-info-articles__archives article-meta" href="/archives"><span class="pull-left">文章</span><span class="pull-right">239</span></a><a class="author-info-articles__tags article-meta" href="/tags"><span class="pull-left">标签</span><span class="pull-right">41</span></a><a class="author-info-articles__categories article-meta" href="/categories"><span class="pull-left">分类</span><span class="pull-right">29</span></a></div><hr><div class="author-info-links"><div class="author-info-links__title text-center">Links</div><a class="author-info-links__name text-center" target="_blank" rel="noopener" href="http://192.168.2.212:9090/">Jira</a><a class="author-info-links__name text-center" target="_blank" rel="noopener" href="http://192.168.2.212:8090/">Confluence</a><a class="author-info-links__name text-center" target="_blank" rel="noopener" href="http://bloc.leniugame.com/">Leniu</a></div></div></div><nav class="no-bg" id="nav"><div id="page-header"><span class="pull-left"> <a id="site-name" href="/">Kyren's Blog</a></span><i class="fa fa-bars toggle-menu pull-right" aria-hidden="true"></i><span class="pull-right menus">   <a class="site-page" href="/">主页</a><a class="site-page" href="/essay">随笔</a><a class="site-page" href="/archives">归档</a><a class="site-page" href="/tags">标签</a><a class="site-page" href="/categories">分类</a><a class="site-page" href="/about">关于</a></span><span class="pull-right"><a class="site-page social-icon search"><i class="fa fa-search"></i><span> 搜索</span></a></span></div><div id="site-info"><div id="site-title">Kyren's Blog</div><div id="site-sub-title">Stay hungry, stay foolish</div><div id="site-social-icons"><a class="social-icon" href="https://github.com/huluo666" target="_blank" rel="noreferrer noopener nofollow"><i class="fa-github fa"></i></a></div></div></nav><div id="content-outer"><div class="layout" id="content-inner"><div class="recent-post-item article-container"><a class="article-title" href="/2022/07/08/Hexo%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA%E4%B8%8E%E4%BD%BF%E7%94%A8/">Hexo博客搭建与使用</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2022-07-08</time><div class="content">Hexo官网https://hexo.io/zh-cn/
安装hexo12345678npm install hexo-cli -g# 初始化博客目录hexo init Blog# 进入博客目录cd Blog# 安装博客相关依赖npm installhexo -v #验证



创建文章1.创建一个 ...</div><a class="more" href="/2022/07/08/Hexo%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA%E4%B8%8E%E4%BD%BF%E7%94%A8/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2022/07/07/Runtime%E5%AE%9E%E7%8E%B0%E8%87%AA%E5%AE%9A%E4%B9%89description%E6%89%93%E5%8D%B0%E4%B8%AD%E6%96%87/">Runtime实现自定义description打印中文</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2022-07-07</time><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/%E6%96%B0%E5%BB%BA-%E6%A8%A1%E6%9D%BF-%E5%B0%8F%E4%B9%A6%E5%8C%A0/">新建,模板,小书匠</a></span><div class="content">实现原理简介：首先通过runtiime获取对象属性，然后取值进行自定义拼接，通过runtime方法交换自定义description方法，通过Unicode解码打印中文。只在Debug状态下进行方法交换
在接触runtime前，团队开发时为便于调试，常常需要在model里进行description重写 ...</div><a class="more" href="/2022/07/07/Runtime%E5%AE%9E%E7%8E%B0%E8%87%AA%E5%AE%9A%E4%B9%89description%E6%89%93%E5%8D%B0%E4%B8%AD%E6%96%87/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2022/07/07/iOS%E7%BD%91%E7%BB%9C%E8%AF%B7%E6%B1%82NSURLSession/">无题</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2022-07-07</time><div class="content">NSURLSessionhttps://developer.apple.com/library/content/documentation/Cocoa/Conceptual/URLLoadingSystem/Articles/UsingNSURLSession.html
2013 年 WWDC 上， ...</div><a class="more" href="/2022/07/07/iOS%E7%BD%91%E7%BB%9C%E8%AF%B7%E6%B1%82NSURLSession/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2018/04/02/React-Native%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA-Mac/">React Native开发环境搭建-Mac</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2018-04-02</time><div class="content">1、React Native Command Line Tools安装1npm install -g react-native-cli

如果你看到EACCES: permission denied这样的权限报错，那么请参照上文的homebrew译注，修复&#x2F;usr&#x2F;local目录 ...</div><a class="more" href="/2018/04/02/React-Native%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA-Mac/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2018/03/30/Xcode%E6%A0%BC%E5%BC%8F%E5%8C%96%E4%BB%A3%E7%A0%81/">Xcode格式化代码</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2018-03-30</time><div class="content">SwiftFormat -来自iCarousel作者

A code library and command-line formatting tool for reformatting Swift code

SwiftLint
</div><a class="more" href="/2018/03/30/Xcode%E6%A0%BC%E5%BC%8F%E5%8C%96%E4%BB%A3%E7%A0%81/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2018/03/29/%E4%BC%98%E9%9B%85%E7%9A%84%E4%BD%BF%E7%94%A8Sublime-Text3/">优雅的使用Sublime-Text3</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2018-03-29</time><div class="content">https://www.sublimetext.com/http://www.sublimetextcn.com/
如何安装插件详见：https://packagecontrol.io/installation
安装方法：
Cmd+Shift+P-&gt;install package -&gt;  ...</div><a class="more" href="/2018/03/29/%E4%BC%98%E9%9B%85%E7%9A%84%E4%BD%BF%E7%94%A8Sublime-Text3/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2018/03/27/iOS%E5%86%85%E5%AD%98%E6%B3%84%E6%BC%8F/">iOS内存泄漏</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2018-03-27</time><div class="content">Instrument — Leaks，Allocations，AnalyzeAnalyze-静态分析工具
Product-&gt;Analyze(command+shift+B)
可以找出代码潜在错误,如内存泄露,未使用函数和变量等,还可以检测出一些内存泄漏问题，比如一些比较明显的循环引用，CF库对 ...</div><a class="more" href="/2018/03/27/iOS%E5%86%85%E5%AD%98%E6%B3%84%E6%BC%8F/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2018/03/27/iOS%E5%B8%B8%E7%94%A8%E7%AC%AC%E4%B8%89%E5%88%86%E5%BA%93%E6%BA%90%E7%A0%81%E5%88%86%E6%9E%90/">iOS常用第三分库源码分析</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2018-03-27</time><div class="content">AFNetworkingGitHub:https://github.com/AFNetworking/AFNetworking
AF分为如下5个功能模块：

网络通信模块(AFURLSessionManager、AFHTTPSessionManger)
网络状态监听模块(Reachability)
 ...</div><a class="more" href="/2018/03/27/iOS%E5%B8%B8%E7%94%A8%E7%AC%AC%E4%B8%89%E5%88%86%E5%BA%93%E6%BA%90%E7%A0%81%E5%88%86%E6%9E%90/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2018/03/26/iOS%E5%A4%9A%E7%BA%BF%E7%A8%8B/">iOS多线程</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2018-03-26</time><div class="content">在 iOS 中其实目前有 4 套多线程方案

NSThread
GCD
NSOperation &amp; NSOperationQueue
Pthreads(基于c语言的框架,不常用)

基本概念


名称
概念



进程
一个具有一定独立功能的程序关于某个数据集合的一次运行活动。可以理解成一个 ...</div><a class="more" href="/2018/03/26/iOS%E5%A4%9A%E7%BA%BF%E7%A8%8B/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2018/03/23/iOS%E4%B8%ADClass%E7%9B%B8%E5%85%B3%E6%96%B9%E6%B3%95%E5%8C%BA%E5%88%AB/">iOS中Class相关方法区别</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2018-03-23</time><div class="content">一、isKindOfClass、isMemberOfClass和isSubclassOfClass区别123456789101112131415161718191.首先申明 四个类 A-&gt;B-&gt;C-&gt;D ，继承关系 A继承B,B继承C，C继承D。即D是最顶层的父类，A是最基层的子类 ...</div><a class="more" href="/2018/03/23/iOS%E4%B8%ADClass%E7%9B%B8%E5%85%B3%E6%96%B9%E6%B3%95%E5%8C%BA%E5%88%AB/#more" style="margin-top: 14px">阅读更多</a><hr></div><nav id="pagination"><div class="pagination"><a class="extend prev" rel="prev" href="/"><i class="fa fa-chevron-left"></i></a><a class="page-number" href="/">1</a><span class="page-number current">2</span><a class="page-number" href="/page/3/">3</a><span class="space">&hellip;</span><a class="page-number" href="/page/24/">24</a><a class="extend next" rel="next" href="/page/3/"><i class="fa fa-chevron-right"></i></a></div></nav></div></div><footer><div class="layout" id="footer"><div class="copyright">&copy;2022 By kyren</div><div class="framework-info"><span>驱动 - </span><a target="_blank" rel="noopener" href="http://hexo.io"><span>Hexo</span></a><span class="footer-separator">|</span><span>主题 - </span><a target="_blank" rel="noopener" href="https://github.com/Molunerfinn/hexo-theme-melody"><span>Melody</span></a></div><div class="footer_custom_text">hitokoto</div><div class="busuanzi"><script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><span id="busuanzi_container_site_uv"><i class="fa fa-user"></i><span id="busuanzi_value_site_uv"></span><span></span></span><span class="footer-separator">|</span><span id="busuanzi_container_site_pv"><i class="fa fa-eye"></i><span id="busuanzi_value_site_pv"></span><span></span></span></div></div></footer><i class="fa fa-arrow-up" id="go-up" aria-hidden="true"></i><script src="https://cdn.jsdelivr.net/npm/animejs@latest/lib/anime.min.js"></script><script src="https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js"></script><script src="https://cdn.jsdelivr.net/npm/velocity-animate@latest/velocity.min.js"></script><script src="https://cdn.jsdelivr.net/npm/velocity-ui-pack@latest/velocity.ui.min.js"></script><script src="/js/utils.js?version=1.9.0"></script><script src="/js/fancybox.js?version=1.9.0"></script><script src="/js/sidebar.js?version=1.9.0"></script><script src="/js/copy.js?version=1.9.0"></script><script src="/js/fireworks.js?version=1.9.0"></script><script src="/js/transition.js?version=1.9.0"></script><script src="/js/scroll.js?version=1.9.0"></script><script src="/js/head.js?version=1.9.0"></script><script src="/js/search/local-search.js"></script><script>if(/Android|webOS|iPhone|iPod|iPad|BlackBerry/i.test(navigator.userAgent)) {
  $('#nav').addClass('is-mobile')
  $('footer').addClass('is-mobile')
  $('#top-container').addClass('is-mobile')
}</script><div class="search-dialog" id="local-search"><div class="search-dialog__title" id="local-search-title">本地搜索</div><div id="local-input-panel"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章"></div></div></div><hr><div id="local-search-results"><div id="local-hits"></div><div id="local-stats"><div class="local-search-stats__hr" id="hr"><span>由</span> <a target="_blank" rel="noopener" href="https://github.com/wzpan/hexo-generator-search" style="color:#49B1F5;">hexo-generator-search</a>
 <span>提供支持</span></div></div></div><span class="search-close-button"><i class="fa fa-times"></i></span></div><div class="search-mask"></div></body></html>